package com.qf.service;

import com.codingapi.txlcn.tc.annotation.LcnTransaction;
import com.qf.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author zhaojian
 */
@Service
public class UserBServiceImpl implements UserBService{

    @Autowired
    private UserMapper userMapper;


    @Override
    @Transactional
    @LcnTransaction
    public void decrB(Integer id, Integer money) {

        userMapper.decrB(id, money);

    }

}
